package com.abocode.happybean.copy.support;

import com.esotericsoftware.reflectasm.MethodAccess;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author guanxf
 */
public class MethodMapKey extends   Method{

    private static Map<Class, MethodAccess> METHOD_MAP = new HashMap<Class, MethodAccess>();
    private  static Map<String, Integer> METHOD_INDEX_MAP = new HashMap<String, Integer>();

    private  static Map<Class, List<String>> FIELD_MAP = new HashMap<Class, List<String>>();

    public static Map<Class, MethodAccess> getMethodMap() {
        return METHOD_MAP;
    }

    public static Map<String, Integer> getMethodIndexMap() {
        return METHOD_INDEX_MAP;
    }

    public static Map<Class, List<String>> getFieldMap() {
        return FIELD_MAP;
    }

    public static void setFieldMap(Class<?> aClass, List<String> fieldList) {
        FIELD_MAP.put(aClass,fieldList);
    }

    public static void setMethodMap(Class<?> aClass, MethodAccess methodAccess) {
        METHOD_MAP.put(aClass,methodAccess);
    }

    public static void setMethodIndexMap(String s, int setIndex) {
        METHOD_INDEX_MAP.put(s,setIndex);
    }
}
